package com.gym.system.handicap.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gym.common.annotation.Excel;
import com.gym.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 报障对象 gym_handicap
 * 
 * @author administrator
 * @date 2021-04-11
 */
public class GymHandicap extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 报障设备 */
    @Excel(name = "报障设备")
    private String handicapDevice;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private Long deviceNo;

    /** 保障人 */
    @Excel(name = "保障人")
    private String handicapUser;

    /** 报障时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报障时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHandicapDevice(String handicapDevice) 
    {
        this.handicapDevice = handicapDevice;
    }

    public String getHandicapDevice() 
    {
        return handicapDevice;
    }
    public void setDeviceNo(Long deviceNo) 
    {
        this.deviceNo = deviceNo;
    }

    public Long getDeviceNo() 
    {
        return deviceNo;
    }
    public void setHandicapUser(String handicapUser) 
    {
        this.handicapUser = handicapUser;
    }

    public String getHandicapUser() 
    {
        return handicapUser;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("handicapDevice", getHandicapDevice())
            .append("deviceNo", getDeviceNo())
            .append("handicapUser", getHandicapUser())
            .append("startTime", getStartTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
